package cn.marinda.resturants.global;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.metadata.OrderItem;
import com.baomidou.mybatisplus.core.toolkit.CollectionUtils;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import lombok.Data;

import java.util.*;
import java.util.function.Predicate;

/** 分页查询数据通过实例化Ipage后进行一定程度解耦
 *
 * @author Marinda
 * @date 2021/12/8
 */
@Data
public class Pages<T> extends Page{


    public Pages() {
      super();
    }

    public Pages(long current, long size) {

        super(current, size, 0L);
    }

    public Pages(long current, long size, long total) {
        super(current, size, total, true);
    }

    public Pages(long current, long size, boolean isSearchCount) {
        super(current, size, 0L, isSearchCount);
    }

    public Pages(long current, long size, long total, boolean isSearchCount) {
        super(current, size, total,isSearchCount);
    }

}
